<ul class="nav nav-pills">
  <li <% if @active_tab == 'driver_details' %>class="active"<% end %> >
    <a href="<%=driver_path(@driver)%>">Driver details</a>
  </li>
  <li <% if @active_tab == 'driver_addresses' %>class="active"<% end %> >
    <a href="<%= addresses_driver_path(@driver) %>">Addresses</a>
  </li>
  <li <% if @active_tab == 'driver_contacts' %>class="active"<% end %> >
    <a href="<%= contacts_driver_path(@driver) %>">Contacts</a>
  </li>
  <li <% if @active_tab == 'driver_licenses' %>class="active"<% end %> >
    <a href="<%= licenses_driver_path(@driver) %>">Licenses</a>
  </li>
</ul>
